<?php

namespace App\Transformers;


use App\Models\TcpStudytime;
use League\Fractal\ParamBag;
use League\Fractal\TransformerAbstract;

class PutimeLogTransformer extends TransformerAbstract
{

    public function transform(TcpStudytime $item)
    {
        return [
            'id' => $item['id'],
            'inscode' => $item['inscode'] ,
            'coachnum' => $item['coachnum'] ,
            'coachname'=>$item['coachname'],
            'carnum' => $item['carnum'],
            'licnum' => $item['licnum'] ,
            'simunum'=>$item['simunum'],
            'subjcode' => $item['subjcode'],
            'classname' => $item['classname'],
            'classid' => $item['classid'],
            'km' => $item['km'],
            'type' =>  $item['type'],
            'starttime' => $item['starttime'],
            'endtime' => $item['endtime'],
            'duration' => $item['duration'],
            'mileage' => $item['mileage'],
            'valid' =>  $item['valid'],
            'no_valid' =>  $item['no_valid'],
            'is_evaluate' => $item['is_evaluate'],
            'is_complaint' =>  $item['is_complaint'],
        ];
    }


}
